/**
 * Created by gemini on 2017/4/21.
 */
myApp.controller('editModalCtrl', function ($scope, $uibModalInstance) {
    $scope.ok = function () {
        $uibModalInstance.close($scope.selected.item);//关闭
    };
    $scope.cancel = function () {
        $uibModalInstance.dismiss('cancel');//取消
    };

    $scope.dat = new Date();
    $scope.format = "yyyy/MM/dd";
    $scope.altInputFormats = ['yyyy/M!/d!'];

    $scope.popup1 = {
        opened: false
    };
    $scope.open1 = function () {
        $scope.popup1.opened = true;
    };
});